#include <stdio.h>
int main(){
    int n, count, sum;
    sum = 0;
    count = 0;
    scanf("%d", &n);
    while(n!=0){
        
        sum += n%10;
        n /= 10;
        count++;
    }
    printf("%d %d\n", count, sum);

    return 0;
}
